from rest_framework import serializers
from apps.app01.models import User


class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = ['id', 'nickname', 'gender', 'email', 'avatar', 'balance']